package cn.hls.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Table(name = "t_car_attach")
@Entity
@DynamicInsert
@DynamicUpdate
public class CarAttach extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String licenseNum;// 车牌
	private Integer type;//车辆类型 1-主车 2-挂车
	private String fileName;// 附件名称
	private String filePath;// 附件路径

	@Column(name = "license_num", length = 8)
	public String getLicenseNum() {
		return licenseNum;
	}

	public void setLicenseNum(String licenseNum) {
		this.licenseNum = licenseNum;
	}
	@Column(name="type",columnDefinition="number default 1",length=1)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "file_name", length = 32)
	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	@Column(name = "file_path", length = 128)
	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

}
